
<html>

<head>

<title>prueba</title>



	<script type="text/javascript">

	function setlistener(){

		var ve = document.getElementById("ve");

		if(ve != null && ve.addEventListener) {

			ve.addEventListener(

				'ended', 

				function() { 	

					ve.setAttribute("src","media\song.mp3");

					ve.play();

				}, 

				false);

		}

	}

	</script>

</head>

<body onload="setlistener();">



<audio src="media\song.mp3" id="ve" autoplay>

</audio>



</body>

</html>

